package com.test.jbpm.service;

import com.test.jbpm.Pager;
import com.test.jbpm.domain.TroubleTicket;


public interface TroubleTicketService {

	/**
	 * 添加或修改请假单
	 * @param troubleTicket
	 */
	public void addOrUpdate(TroubleTicket troubleTicket);
	
	/**
	 * 根据id批量删除请假单
	 * 
	 * @param troubleTicketId
	 */
	public void del(Integer[] troubleTicketId);
	
	/**
	 * 根据请假单id查询
	 * @param troubleTicketId
	 * @return
	 */
	public TroubleTicket findTroubleTicketById(Integer troubleTicketId);
	
	/**
	 * 查询我的请假单
	 * @param creatorId
	 * @return
	 */
	public Pager<TroubleTicket> findMyTroubleTicketList(Integer creatorId);
	
	/**
	 * 申请
	 * @param troubleTicketIds
	 */
	public void dispatch(Integer[] troubleTicketIds);
	
	/**
	 * 待审请假单
	 * @param creatorId
	 * @return
	 */
	public Pager<TroubleTicket> findApprovingTroubleTicketList(Integer approverId);

	
	/**
	 * 已审请假单
	 * @param creatorId
	 * @return
	 */
	public Pager<TroubleTicket> findApprovedTroubleTicketList(Integer approverId);	
}
